package 作业;
import javax.swing.*;
import java.util.Scanner;
public class WorkCommandBySwitch {
    public static void main(String[] args) {
        /*
        Scanner scan=new Scanner(System.in);
        System.out.println("请选择功能：1.存款;2.取款;3.转账;4.退出");
        int command= scan.nextInt();
        switch(command){
            case 1:
                System.out.println("存款");
                break;
            case 2:
                System.out.println("取款");
                break;
            case 3:
                System.out.println("转账");
                break;
            case 4:
                System.out.println("退出");
                break;


    }

         */
         /*
        Scanner scan=new Scanner(System.in);
        System.out.println("你今年几岁了:1.10 2.20 3.30");
        int command= scan.nextInt();
        switch(command) {
            case 1:
                System.out.println("10");
                break;
            case 2:
                System.out.println("20");
                break;
            case 3:
                System.out.println("30");
                break;
            default:
                System.out.println("错");
        }

          */

        Scanner scan = new Scanner(System.in);
        int num = (int) (Math.random() * 200 + 1);
        System.out.println(num);
        int guess = 50;
        do {
            System.out.println("开始");
            if (guess < num) {
                System.out.println("小");
            } else if (guess > num) {
                System.out.println("大");
            } else {
                System.out.println("对");
            }
        } while (guess != num);
    }
}